package supershop3.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import supershop3.dao.ICategoryDao;
import supershop3.model.Category;

@Controller
@RequestMapping("/admin/start/category")
public class CategoryController {
	
	@Resource
	private ICategoryDao categoryDao;

	@RequestMapping("/findAll.do")
	@ResponseBody
	public List<Category> findAll(){
		return categoryDao.findAll();
	} 
}
